package com.plian.system.vo.fr.bulletin;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.entity.fr.bulletin.BulletinValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "快报数据传输VO", description = "快报数据传输VO")
public class BulletinTransferVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "组织名称")
    private String orgName;

    @ApiModelProperty(value = "单位id")
    private String orgId;

    @ApiModelProperty(value = "报表类型码 0单户 1差额 6合并")
    private String tableTypeCode;

    /**
     * 报表合并层级码
     */
    @ApiModelProperty(value = "报表合并层级码")
    private String summaryCode;

    /**
     * 填报时间
     */
    @ApiModelProperty(value = "填报时间")
    @DateTimeFormat(pattern = DateUtil.PATTERN_MONTH)
    @JsonFormat(pattern = DateUtil.PATTERN_MONTH, timezone = "Asia/Shanghai")
    private Date reportTime;

    /**
     * 填报人
     */
    @ApiModelProperty(value = "填报人")
    private String applicant;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    private String phone;

    /**
     * 填报值
     */
    @ApiModelProperty(value = "填报值")
    private List<BulletinValue> bulletinValues;

    /**
     * 数据来源id
     */
    @ApiModelProperty(value = "数据来源id")
    private String dataSourceId;
}
